<?php echo $this->Html->script(array('actions','users.view'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>
<?php echo $this->Html->css(array('users.add','form','actions'),null,array('inline'=>false));?>

<div class="users form box corners">
	<table width="100%" style="padding-top:0px; margin: 0px;" cellpadding="0" cellspacing="0">
		<tr>
			<td colspan="2" align="center"><h2><?php echo __('Nowy użytkownik')?></h2></td>
		</tr>
		<tr>
			<td align="left" valign="top" style="padding-top:0px; margin: 0px;" width="50%">
				<?php echo $this->Form->create('User',array('url'=>array('plugin'=>false,'controller'=>'users','action'=>'add_user')));?>


						<table width="100%" style="padding-top:0px; margin: 0px;" cellpadding="0" cellspacing="0">
							<tr>
								<td valign="top"><?php 
									echo $this->Form->input('email',array('label'=>__("E-mail",true)));
									echo $this->Form->input('password',array('label'=>__("Proszę podać hasło",true),'type'=>'password'));
									echo $this->Form->input('repeat_password',array('label'=>__("Proszę ponownie podać hasło",true),'type'=>'password'));
									?>
								</td>
								<td valign="top">
									<?php 
									echo $this->Form->input('first_name',array('label'=>__("Imię",true)));
									echo $this->Form->input('last_name',array('label'=>__("Nazwisko",true)));
									?>
								</td>
							</tr>
						</table>						
	
						<table width="100%" style="padding-top:0px; margin: 0px;" cellpadding="0" cellspacing="0">
							<tr>
								<td align="left" valign="top" style="padding-top:0px; margin: 0px;">
									<h3><?php __("Adres"); ?></h3>
									<?php
										echo $this->Form->input('address1',array('label'=>__("Adres",true)));
										echo $this->Form->input('address2',array('label'=>__("Adres",true)));
										echo $this->Form->input('address3',array('label'=>__("Miasto",true)));
										echo $this->Form->input('address4',array('label'=>__("Kod pocztowy",true)));
										//echo $this->Form->input('address5',array('label'=>__("Country",true),'options'=>$countrycod));
										
									?>
								</td>
							</tr>
						</table>
					

				<?php echo $this->Form->end('Zapisz');?>
			</td>
		</tr>
	</table>
</div>
<div class="actions main_actions">
	<ul>

		<li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Yacht Charters', true), array('controller' => 'yacht_charters', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Yacht Charter', true), array('controller' => 'yacht_charters', 'action' => 'add')); ?> </li>
	</ul>
</div>